from kubernetes import client, config

# 加载 Kubernetes 配置
config.load_kube_config()

# 创建 Kubernetes API 客户端
v1 = client.CoreV1Api()

# 指定 Pod 的命名空间和名称
namespace = 'current-semester'
name = 'homework-9'

# 删除 Pod
v1.delete_namespaced_pod(name, namespace)
# v1.delete_namespaced_service(name, namespace)
# api_instance = client.AppsV1Api()
# api_instance.delete_namespaced_deployment(name, namespace)
